package com.leunpha.mini.downloader.bean;

/**
 * User: zhoujingjie
 * Date: 14-6-30
 * Time: 上午10:36
 */
public class Header {
    private StringBuilder header = new StringBuilder(50);

    public synchronized String getHeaders(){
        header.append("\r\n");
        return header.toString();
    }

    public synchronized void addHeader(String key,String value){
        header.append(key);
        header.append(": ");
        header.append(value);
        header.append("\r\n");
    }
}
